################################################
#
# Events for Austria
#
# ID 30000 - 39999 is reserved
#
#
#################################################
#
# Written by Sara Wendel-rtqvist

### Metternich chancellor ###
country_event = {
	id = 30000
	title = "EVTNAME30000"
	desc = "EVTDESC30000"
	
	fire_only_once = yes
	
	major = yes
	
	trigger = {
		tag = AUS
		year = 1808
		NOT = {
			has_country_modifier = metternich_modifier
		}
	}
	
	mean_time_to_happen = {
		days = 365
	}
	
	option = {
		name = "EVTOPT_OK"
		add_country_modifier = {
			name = metternich_modifier
			duration = 365
		}
	}
}

### Military reforms ###
country_event = {
	id = 30010
	title = "EVTNAME30010"
	desc = "EVTDESC30010"
	
	fire_only_once = yes
	
	trigger = {
		tag = AUS
		year = 1807
		war_with = FRA
		NOT = {
			year = 1809
		}
		NOT = {
			has_country_modifier = aus_military_reforms
		}
	}
	
	mean_time_to_happen = {
		days = 365
		
		modifier = {
			factor = 0.5
			NOT = {
				manpower = 25000
			}
		}
	}
	
	option = {
		name = "EVTOPTA30010"
		add_country_modifier = {
			name = aus_military_reforms
			duration = 365
		}
	}
}

### Joseph Haydn dies ###
country_event = {
	id = 30020
	title = "EVTNAME30020"
	desc = "EVTDESC30020"
	
	fire_only_once = yes
	
	trigger = {
		tag = AUS
		year = 1809
		NOT = {
			year = 1812
		}
	}
	
	mean_time_to_happen = {
		days = 365
		
		modifier = {
			factor = 0.5
			total_ideas = 4
		}
	}
	
	option = {
		name = "EVTOPTA30020"
		idea_points = 50
	}
}

### Beethoven's failed concert ###
country_event = {
	id = 30030
	title = "EVTNAME30030"
	desc = "EVTDESC30030"
	
	fire_only_once = yes
	
	trigger = {
		tag = AUS
		year = 1811
		prestige = 40
		NOT = {
			year = 1814
		}
	}
	
	mean_time_to_happen = {
		days = 365
	}
	
	option = {
		name = "EVTOPTA30030"
		prestige = -15
		idea_points = 75
		set_country_flag = beethoven_flag
	}
}

### Maria Theresia von Paradis - blind composer/music performer ###
country_event = {
	id = 30040
	title = "EVTNAME30040"
	desc = "EVTDESC30040"
	
	fire_only_once = yes
	
	trigger = {
		tag = AUS
		year = 1808 #Started music school in Wien
		655 = {
			controlled_by = AUS
			owned_by = AUS
		}
		NOT = {
			has_country_modifier = music_school_wien
		}
	}
	
	mean_time_to_happen = {
		days = 365
	}
	
	option = {
		name = "EVTOPT_OK"
		add_country_modifier = {
			name = music_school_wien
			duration = 365
		}
	}
}

### Sigmund Zois - Zoisite ###
country_event = {
	id = 30050
	title = "EVTNAME30050"
	desc = "EVTDESC30050"
	
	fire_only_once = yes
	
	trigger = {
		tag = AUS
		year = 1805
		NOT = {
			year = 1810
		}
		NOT = {
			has_country_flag = zois_flag
		}
	}
	
	mean_time_to_happen = {
		days = 365
	}
	
	immediate = {
		set_country_flag = zois_flag
	}
	
	option = {
		name = "EVTOPTA30050"
		idea_points = 75
	}
}

### University of Belgrade ###
country_event = {
	id = 30060
	title = "EVTNAME30060"
	desc = "EVTDESC30060"
	
	fire_only_once = yes
	
	trigger = {
		year = 1808
		OR = {
			tag = AUS
			tag = TUR
			tag = SRB
		}
		AUS = {
			OR = {
				NOT = {
					war_with = SRB
				}
				NOT = {
					war_with = TUR
				}
			}
		}
		961 = {
			NOT = {
				has_province_modifier = university_belgrade
			}
			OR = {
				controlled_by = AUS
				controlled_by = TUR
				controlled_by = SRB
			}
		}
	}
	
	mean_time_to_happen = {
		days = 365
		
		modifier = {
			factor = 0.5
			961 = {
				controlled_by = SRB
			}
		}
	}
	
	option = {
		name = "EVTOPTA30060"
		961 = {
			add_province_modifier = {
				name = university_belgrade
				duration = 365
			}
		}
	}
}

### Sava Mrkalj ###
country_event = {
	id = 30070
	title = "EVTNAME30070"
	desc = "EVTDESC30070"
	
	fire_only_once = yes
	
	trigger = {
		tag = AUS
		year = 1810
		691 = {
			OR = {
				controlled_by = AUS
				owned_by = AUS
			}
			revolt_risk = 1
		}
	}
	
	mean_time_to_happen = {
		days = 365
		
		modifier = {
			factor = 0.9
			691 = {
				revolt_risk = 2
			}
		}
		modifier = {
			factor = 0.9
			691 = {
				revolt_risk = 3
			}
		}
		modifier = {
			factor = 0.9
			691 = {
				revolt_risk = 4
			}
		}
		modifier = {
			factor = 0.9
			691 = {
				revolt_risk = 5
			}
		}
	}
	
	option = {
		name = "EVTOPTA30070"
		691 = {
			revolt_risk = -1
		}
	}
}


### Inform about the spy Carl Schulmeister ###
country_event = {
	id = 30080
	title = "EVTNAME10010"
	desc = "EVTDESC10010"
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA30080"
		prestige = 10
		relation = {
			who = FRA
			value = -10
		}
	}
}


### Dissolution of the Holy Roman Empire ###
country_event = {
	id = 30090
	title = "EVTNAME30090"
	desc = "EVTDESC30090"
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPT_OK"
		AUS = {
			free_vassal = HRE
		}
		if = {
			limit = {
				BAV = {
					alliance_with = FRA
					OR = {
						truce_with = AUS
						alliance_with = AUS
					}
				}
			}
			AUS = {
				510 = { #Augsburg
					secede_province = BAV
				}
			}
		}
		tooltip = {
			relation = {
				who = FRA
				value = -20
			}
		}
	}
}

### Universalmuseum Joanneum ###
country_event = {
	id = 30100
	title = "EVTNAME30100"
	desc = "EVTDESC30100"
	
	fire_only_once = yes
	
	trigger = {
		tag = AUS
		year = 1811
		NOT = {
			has_country_modifier = universalmuseum_joanneum
		}
	}
	
	mean_time_to_happen = {
		months = 120
	}
	
	option = {
		name = "EVTOPT_OK"
		add_country_modifier = {
			name = universalmuseum_joanneum
			duration = 365
		}
	}
}

### Carl Maria von Weber ###
country_event = {
	id = 30105
	title = "EVTNAME30105"
	desc = "EVTDESC30105"
	
	fire_only_once = yes
	
	trigger = {
		tag = AUS
		year = 1810
		total_ideas = 4
	}
	
	mean_time_to_happen = {
		months = 120
	}
	
	option = {
		name = "EVTOPTA30105"
		prestige = 15
	}
	option = {
		name = "EVTOPTB30105"
		idea_points = 25
	}
}

### Jernej Kopitar ###
country_event = {
	id = 30110
	title = "EVTNAME30110"
	desc = "EVTDESC30110"
	
	fire_only_once = yes
	
	trigger = {
		tag = AUS
		year = 1808
		NOT = {
			year = 1811
		}
		total_ideas = 4
		655 = { #Wien/Vienna
			owned_by = AUS
			controlled_by = AUS
		}
	}
	
	mean_time_to_happen = {
		months = 120
	}
	
	option = {
		name = "EVTOPT_OK"
		prestige = 15
		idea_points = 25
	}
}

### Leopold Auenbrugger ###
country_event = {
	id = 30115
	title = "EVTNAME30115"
	desc = "EVTDESC30115"
	
	fire_only_once = yes
	
	trigger = {
		tag = AUS
		year = 1809
		NOT = {
			year = 1812
		}
		658 = { #Graz
			owned_by = AUS
			controlled_by = AUS
		}
	}
	
	mean_time_to_happen = {
		months = 120
	}
	
	option = {
		name = "EVTOPT_OK"
		idea_points = 50
	}
}

### Jean de Carro ###
country_event = {
	id = 30120
	title = "EVTNAME30120"
	desc = "EVTDESC30120"
	
	fire_only_once = yes
	
	trigger = {
		tag = AUS
		NOT = {
			year = 1812
		}
		total_ideas = 4
		655 = { #Wien/Vienna
			owned_by = AUS
			controlled_by = AUS
		}
	}
	
	mean_time_to_happen = {
		months = 120
	}
	
	option = {
		name = "EVTOPT_OK"
		idea_points = 50
	}
}

### Count Alois von Beckh Widmansttten ###
country_event = {
	id = 30125
	title = "EVTNAME30125"
	desc = "EVTDESC30125"
	
	fire_only_once = yes
	
	trigger = {
		tag = AUS
		year = 1808
		total_ideas = 6
		655 = { #Wien/Vienna
			owned_by = AUS
			controlled_by = AUS
		}		
	}
	
	mean_time_to_happen = {
		months = 120
	}
	
	option = {
		name = "EVTOPTA30125"
		idea_points = 25
	}
}

### Johann Adam Schmidt ###
country_event = {
	id = 30130
	title = "EVTNAME30130"
	desc = "EVTDESC30130"
	
	fire_only_once = yes
	
	trigger = {
		tag = AUS
		year = 1809
		NOT = {
			year = 1813
		}
	}
	
	mean_time_to_happen = {
		months = 120
	}
	
	option = {
		name = "EVTOPTA30130"
		idea_points = 25
	}
}

### Beethoven's Doctor (Johann Baptist Malfatti von Monteregio) ###
country_event = {
	id = 30135
	title = "EVTNAME30135"
	desc = "EVTDESC30135"
	
	fire_only_once = yes
	
	trigger = {
		tag = AUS
		year = 1811
		total_ideas = 7
		NOT = {
			has_country_flag = beethoven_flag
		}
		655 = { #Wien/Vienna
			owned_by = AUS
			controlled_by = AUS
		}
	}
	
	mean_time_to_happen = {
		months = 120
	}
	
	option = {
		name = "EVTOPT_OK"
		idea_points = 25
	}
}

### August Wilhelm Schlegel ###
country_event = {
	id = 30140
	title = "EVTNAME30140"
	desc = "EVTDESC30140"
	
	fire_only_once = yes
	
	trigger = {
		tag = AUS
		year = 1808
		655 = { #Wien/Vienna
			owned_by = AUS
			controlled_by = AUS
		}
		NOT = {
			has_country_flag = karl_schlegel_flag
		}
	}
	
	mean_time_to_happen = {
		months = 120
	}
	
	option = {
		name = "EVTOPTA30140"
		set_country_flag = august_schlegel_flag
		idea_points = 25
	}
}

### Karl Wilhelm Friedrich Schlegel ###
country_event = {
	id = 30145
	title = "EVTNAME30145"
	desc = "EVTDESC30145"
	
	fire_only_once = yes
	
	trigger = {
		tag = AUS
		year = 1809
		655 = { #Wien/Vienna
			owned_by = AUS
			controlled_by = AUS
		}
		NOT = {
			has_country_flag = august_schlegel_flag
		}
	}
	
	mean_time_to_happen = {
		months = 120
	}
	
	option = {
		name = "EVTOPTA30145"
		set_country_flag = karl_schlegel_flag
		idea_points = 25
	}
}
